
<script setup lang="ts">
import type {FormInstance, FormRules} from "element-plus";

definePageMeta({
  layout:'admin',
  title:'修改配置',
});

const {data:info,refresh}=await useServerGet('/backend/config/detail');
</script>

<template>
  <el-card >
    <div class="mt-4 mb-10"><h1 class="text-center">配置详情：</h1></div>
    <el-form label-width="200px" class="w-[500px] mx-auto" label-suffix="：">
      <template v-if="info.data">
        <el-form-item :label="item.remark" :prop="key" v-for="(item,key) in info.data">
          {{item.value }}
        </el-form-item>
        <el-form-item>
          <el-button type="primary"><NuxtLink to="/backend/setting/modify">修改配置</NuxtLink></el-button>
        </el-form-item>
      </template>
    </el-form>

  </el-card>
</template>

<style scoped lang="scss">

</style>